<template>
  <button open-type="" hover-class="button-hover" @click="gotoLogin" >
    点击跳转到登录页面
  </button>

  <homePage ref="innh" ></homePage>
</template>

<script setup>
import homePage from '@/pageA/home/index'
import { getCurrentInstance, nextTick, onMounted } from 'vue';
const innh = ref(null);
onMounted(() => {
  nextTick(() => {
    console.log(innh.value.str);
  })
})

const gotoLogin = () => {
  uni.navigateTo({
    url: '/pageA/login/index'
  })
}

</script>

<style scoped>
.page {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
}
</style>